// 路由配置文件 - 统一管理所有路由信息
import React from 'react';

// 懒加载组件导入
const Mainpage_show = React.lazy(() => import('./mainpage_show.js'));
const Userinfo = React.lazy(() => import('./userinfo.js'));
// const TestLayout = React.lazy(() => import('./test_layout.js'));

// 基础信息模块
const Bmda_list = React.lazy(() => import('./shipSRM/baseinfo/bmda_list.js'));
const Bmda_form = React.lazy(() => import('./shipSRM/baseinfo/bmda_form.js'));
const Wlda_list = React.lazy(() => import('./shipSRM/baseinfo/wlda_list.js'));
const Wlda_form = React.lazy(() => import('./shipSRM/baseinfo/wlda_form.js'));
const Khda_list = React.lazy(() => import('./shipSRM/baseinfo/khda_list.js'));
const Khda_form = React.lazy(() => import('./shipSRM/baseinfo/khda_form.js'));
const Zcxx_list = React.lazy(() => import('./shipSRM/baseinfo/zcxx_list.js'));
const Zcxx_form = React.lazy(() => import('./shipSRM/baseinfo/zcxx_form.js'));
const Wlfl_list = React.lazy(() => import('./shipSRM/baseinfo/wlfl_list.js'));
const Wlfl_form = React.lazy(() => import('./shipSRM/baseinfo/wlfl_form.js'));
const Ckda_list = React.lazy(() => import('./shipSRM/baseinfo/Ckda_list.js'));
const Ckda_form = React.lazy(() => import('./shipSRM/baseinfo/Ckda_form.js'));
const Cpda_list = React.lazy(() => import('./shipSRM/baseinfo/cpda_list.js'));
const Cpda_form = React.lazy(() => import('./shipSRM/baseinfo/cpda_form.js'));


// 系统管理模块
const Dict_list = React.lazy(() => import('./shipSRM/sys/dict_list.js'));
const Dict_form = React.lazy(() => import('./shipSRM/sys/dict_form.js'));
const Js_list = React.lazy(() => import('./shipSRM/sys/js_list.js'));
const Js_form = React.lazy(() => import('./shipSRM/sys/js_form.js'));
const Tzgg_list = React.lazy(() => import('./shipSRM/sys/tzgg_list.js'));
const Tzgg_form = React.lazy(() => import('./shipSRM/sys/tzgg_form.js'));
const Bgmenu_list = React.lazy(() => import('./shipSRM/sys/bgmenu_list.js'));
const Bgmenu_form = React.lazy(() => import('./shipSRM/sys/bgmenu_form.js'));
const Button_config = React.lazy(() => import('./shipSRM/sys/buttonConfig.js'));
const Oltable_list = React.lazy(() => import('./shipSRM/sys/oltable_list.js'));
const Oltable_form = React.lazy(() => import('./shipSRM/sys/oltable_form.js'));
const Czlog = React.lazy(() => import('./shipSRM/sys/czlog.js'));
const Olreport_list = React.lazy(() => import('./shipSRM/sys/olreport_list.js'));
const Olreport_form = React.lazy(() => import('./shipSRM/sys/olreport_form.js'));
const Olseq_list = React.lazy(() => import('./shipSRM/sys/olseq_list.js'));
const Olseq_form = React.lazy(() => import('./shipSRM/sys/olseq_form.js'));
const Ry_list = React.lazy(() => import('./shipSRM/baseinfo/ry_list.js'));
const Ry_form = React.lazy(() => import('./shipSRM/baseinfo/ry_form.js'));

// 供应商中心模块
const Gys_list = React.lazy(() => import('./shipSRM/gyszx/gys_list.js'));
const Gys_form = React.lazy(() => import('./shipSRM/gyszx/gys_form.js'));
const Gysbg_list = React.lazy(() => import('./shipSRM/gyszx/gysbg_list.js'));
const Gysbg_form = React.lazy(() => import('./shipSRM/gyszx/gysbg_form.js'));
const Gyspj_list = React.lazy(() => import('./shipSRM/gyszx/gyspj_list.js'));
const Gyspj_form = React.lazy(() => import('./shipSRM/gyszx/gyspj_form.js'));

// 招标中心模块
const Xmxj_list = React.lazy(() => import('./shipSRM/zbzx/xmxj_list.js'));
const Xmxj_form = React.lazy(() => import('./shipSRM/zbzx/xmxj_form.js'));
const Xmtb_list = React.lazy(() => import('./shipSRM/zbzx/xmtb_list.js'));
const Xmtb_form = React.lazy(() => import('./shipSRM/zbzx/xmtb_form.js'));
const Xmjj_list = React.lazy(() => import('./shipSRM/zbzx/xmjj_list.js'));
const Xmjj_form = React.lazy(() => import('./shipSRM/zbzx/xmjj_form.js'));
const Zyjj_list = React.lazy(() => import('./shipSRM/zbzx/zyjj_list.js'));
const Zyjj_form = React.lazy(() => import('./shipSRM/zbzx/zyjj_form.js'));
const Xm_zb_form = React.lazy(() => import('./shipSRM/zbzx/xm_zb_form.js'));
const Xm_kb_form = React.lazy(() => import('./shipSRM/zbzx/xm_kb_form.js'));
const Xm_kb_list = React.lazy(() => import('./shipSRM/zbzx/xm_kb_list.js'));
const Xmpb_list = React.lazy(() => import('./shipSRM/zbzx/xmpb_list.js'));
const Xmpb_form = React.lazy(() => import('./shipSRM/zbzx/xmpb_form.js'));
const Gysyb_list = React.lazy(() => import('./shipSRM/zbzx/gysyb_list.js'));
const Gysyb_form = React.lazy(() => import('./shipSRM/zbzx/gysyb_form.js'));
const Gysjb_list = React.lazy(() => import('./shipSRM/zbzx/gysjb_list.js'));
const Gysjb_form = React.lazy(() => import('./shipSRM/zbzx/gysjb_form.js'));
const Gysbqxj_list = React.lazy(() => import('./shipSRM/zbzx/gysbqxj_list.js'));
const Gysbqxj_form = React.lazy(() => import('./shipSRM/zbzx/gysbqxj_form.js'));
const Gysxj_list = React.lazy(() => import('./shipSRM/zbzx/gysxj_list.js'));
const Gysxj_form = React.lazy(() => import('./shipSRM/zbzx/gysxj_form.js'));
const Gystb_list = React.lazy(() => import('./shipSRM/zbzx/gystb_list.js'));
const Gystb_form = React.lazy(() => import('./shipSRM/zbzx/gystb_form.js'));
const Xm_sp_list = React.lazy(() => import('./shipSRM/zbzx/xmsp_list.js'));
const Xm_sp_form = React.lazy(() => import('./shipSRM/zbzx/xmsp_form.js'));
const Gyszb_list = React.lazy(() => import('./shipSRM/zbzx/gyszb_list.js'));
const Gyszb_form = React.lazy(() => import('./shipSRM/zbzx/gyszb_form.js'));
const Zbfp_list = React.lazy(() => import('./shipSRM/zbzx/zbfp_list.js'));
const Zbfp_form = React.lazy(() => import('./shipSRM/zbzx/zbfp_form.js'));
const Jjzc_list = React.lazy(() => import('./shipSRM/zbzx/jjzc_list.js'));

// 库存管理模块
const Qtck_list = React.lazy(() => import('./shipSRM/kcgl/qtck_list.js'));
const Qtck_form = React.lazy(() => import('./shipSRM/kcgl/qtck_form.js'));
const Qtrk_list = React.lazy(() => import('./shipSRM/kcgl/qtrk_list.js'));
const Qtrk_form = React.lazy(() => import('./shipSRM/kcgl/qtrk_form.js'));
const Dbd_list = React.lazy(() => import('./shipSRM/kcgl/dbd_list.js'));
const Dbd_form = React.lazy(() => import('./shipSRM/kcgl/dbd_form.js'));

// 合同中心模块
const Htmb_list = React.lazy(() => import('./shipSRM/htzx/htmb_list.js'));
const Htmb_form = React.lazy(() => import('./shipSRM/htzx/htmb_form.js'));
const Httz_list = React.lazy(() => import('./shipSRM/htzx/httz_list.js'));
const Httz_form = React.lazy(() => import('./shipSRM/htzx/httz_form.js'));
const Xymb_list = React.lazy(() => import('./shipSRM/htzx/xymb_list.js'));
const Xymb_form = React.lazy(() => import('./shipSRM/htzx/xymb_form.js'));
const Xygl_list = React.lazy(() => import('./shipSRM/htzx/xygl_list.js'));
const Xygl_form = React.lazy(() => import('./shipSRM/htzx/xygl_form.js'));

// 报表模块
const Crkmx = React.lazy(() => import('./shipSRM/kc_report/crkmx.js'));
const Sfc = React.lazy(() => import('./shipSRM/kc_report/sfc.js'));
const Jskcmx = React.lazy(() => import('./shipSRM/kc_report/jskcmx.js'));
const Scllhz = React.lazy(() => import('./shipSRM/kc_report/scllhz.js'));

// 财务管理模块
const Xsfp_list = React.lazy(() => import('./shipSRM/cwgl/xsfp_list.js'));
const Xsfp_form = React.lazy(() => import('./shipSRM/cwgl/xsfp_form.js'));
const Gpd_list = React.lazy(() => import('./shipSRM/cwgl/gpd_list.js'));
const Gpd_form = React.lazy(() => import('./shipSRM/cwgl/gpd_form.js'));

// 短信中心模块
const Fsjl_list = React.lazy(() => import('./shipSRM/dxzx/fsjl_list.js'));

// 移动端模块
const Mobile_cgrk_llj = React.lazy(() => import('./shipSRM/cgrk/mobile_cgrk_llj.js'));
const Mobile_sltzd_llj = React.lazy(() => import('./shipSRM/cgrk/mobile_sltzd_llj.js'));
const Mobile_qgd_form = React.lazy(() => import('./shipSRM/cgrk/mobile_qgd_form.js'));
const Mobile_qgd_list = React.lazy(() => import('./shipSRM/cgrk/mobile_qgd_list.js'));
const Mobile_bgd_list = React.lazy(() => import('./shipSRM/cgrk/mobile_bgd_list.js'));
const Mobile_bgd_form = React.lazy(() => import('./shipSRM/cgrk/mobile_bgd_form.js'));
const Mobile_cprk_list = React.lazy(() => import('./shipSRM/cgrk/mobile_cprk_list.js'));
const Mobile_cprk_form = React.lazy(() => import('./shipSRM/cgrk/mobile_cprk_form.js'));
const Mobile_gpd_list = React.lazy(() => import('./shipSRM/cgrk/mobile_gpd_list.js'));
const Mobile_gpd_form = React.lazy(() => import('./shipSRM/cgrk/mobile_gpd_form.js'));

// 独立页面模块

const Login = React.lazy(() => import('./login.js'));
const Mobile_login = React.lazy(() => import('./mobile_login.js'));
const Mainpage_new = React.lazy(() => import('./mainpage_new.js'));
const Mobile_mainpage = React.lazy(() => import('./mobile_mainpage.js'));
const NotFound = React.lazy(() => import('./notFound.js'));
const Tinymce = React.lazy(() => import('./shipSRM/newmes/tinymce.js'));
const Scllhz_print = React.lazy(() => import('./shipSRM/kc_report/scllhz_print.js'));

// 路由配置映射表
export const routeConfig = {
  // 独立页面路由 - 不在主布局中
  '/': {
    component: Login,
    cacheKey: 'login',
    title: '登录',
    inMainLayout: false
  },
  '/mobile_login': {
    component: Mobile_login,
    cacheKey: 'mobile_login',
    title: '移动端登录',
    inMainLayout: false
  },
  

  // 系统页面
  '/shipSRM/mainpage': {
    component: Mainpage_show,
    cacheKey: 'mainpage',
    title: '首页',
    inMainLayout: true
  },
  '/shipSRM/userinfo': {
    component: Userinfo,
    cacheKey: 'userinfo',
    title: '用户信息',
    inMainLayout: true
  },
  '/shipSRM/404': {
    component: NotFound,
    cacheKey: '404',
    title: '页面未找到',
    inMainLayout: false
  },
  '/shipSRM/tinymce': {
    component: Tinymce,
    cacheKey: 'tinymce',
    title: '富文本编辑器',
    inMainLayout: false
  },

  // 基础信息管理
  '/shipSRM/baseinfo/bmdalb': {
    component: Bmda_list,
    cacheKey: 'bmdalb',
    title: '部门档案',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/bmda_form': {
    component: Bmda_form,
    cacheKey: 'bmda_form',
    title: '部门档案表单',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/wldalb': {
    component: Wlda_list,
    cacheKey: 'wldalb',
    title: '物料档案',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/wlda_form': {
    component: Wlda_form,
    cacheKey: 'wlda_form',
    title: '物料档案表单',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/khdalb': {
    component: Khda_list,
    cacheKey: 'khdalb',
    title: '客户档案',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/khda_form': {
    component: Khda_form,
    cacheKey: 'khda_form',
    title: '客户档案表单',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/zcxx_list': {
    component: Zcxx_list,
    cacheKey: 'zcxx_list',
    title: '注册信息',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/zcxx_form': {
    component: Zcxx_form,
    cacheKey: 'zcxx_form',
    title: '注册信息表单',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/wlfllb': {
    component: Wlfl_list,
    cacheKey: 'wlfllb',
    title: '物料分类',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/wlfl_form': {
    component: Wlfl_form,
    cacheKey: 'wlfl_form',
    title: '物料分类表单',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/ckda_list': {
    component: Ckda_list,
    cacheKey: 'ckda_list',
    title: '仓库档案',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/ckda_form': {
    component: Ckda_form,
    cacheKey: 'ckda_form',
    title: '仓库档案表单',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/cpda_list': {
    component: Cpda_list,
    cacheKey: 'cpda_list',
    title: '产品档案',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/cpda_form': {
    component: Cpda_form,
    cacheKey: 'cpda_form',
    title: '产品档案表单',
    inMainLayout: true
  },

 

  // 系统管理
  '/shipSRM/sys/dict_list': {
    component: Dict_list,
    cacheKey: 'dict_list',
    title: '字典管理',
    inMainLayout: true
  },
  '/shipSRM/sys/dict_form': {
    component: Dict_form,
    cacheKey: 'dict_form',
    title: '字典表单',
    inMainLayout: true
  },
  '/shipSRM/sys/js_list': {
    component: Js_list,
    cacheKey: 'js_list',
    title: '角色管理',
    inMainLayout: true
  },
  '/shipSRM/sys/js_form': {
    component: Js_form,
    cacheKey: 'js_form',
    title: '角色表单',
    inMainLayout: true
  },
  '/shipSRM/sys/tzgg_list': {
    component: Tzgg_list,
    cacheKey: 'tzgg_list',
    title: '通知公告',
    inMainLayout: true
  },
  '/shipSRM/sys/tzgg_form': {
    component: Tzgg_form,
    cacheKey: 'tzgg_form',
    title: '通知公告表单',
    inMainLayout: true
  },
  '/shipSRM/sys/bgmenu_list': {
    component: Bgmenu_list,
    cacheKey: 'bgmenu_list',
    title: '菜单管理',
    inMainLayout: true
  },
  '/shipSRM/sys/bgmenu_form': {
    component: Bgmenu_form,
    cacheKey: 'bgmenu_form',
    title: '菜单表单',
    inMainLayout: true
  },
  '/shipSRM/sys/anpz_form': {
    component: Button_config,
    cacheKey: 'anpz_form',
    title: '按钮配置',
    inMainLayout: true
  },
  '/shipSRM/sys/oltable_list': {
    component: Oltable_list,
    cacheKey: 'oltable_list',
    title: '在线表管理',
    inMainLayout: true
  },
  '/shipSRM/sys/oltable_form': {
    component: Oltable_form,
    cacheKey: 'oltable_form',
    title: '在线表表单',
    inMainLayout: true
  },
  '/shipSRM/sys/czlog': {
    component: Czlog,
    cacheKey: 'czlog',
    title: '操作日志',
    inMainLayout: true
  },
  '/shipSRM/sys/olreport_list': {
    component: Olreport_list,
    cacheKey: 'olreport_list',
    title: '在线报表',
    inMainLayout: true
  },
  '/shipSRM/sys/olreport_form': {
    component: Olreport_form,
    cacheKey: 'olreport_form',
    title: '在线报表表单',
    inMainLayout: true
  },
  '/shipSRM/sys/olseq_list': {
    component: Olseq_list,
    cacheKey: 'olseq_list',
    title: '序列号管理',
    inMainLayout: true
  },
  '/shipSRM/sys/olseq_form': {
    component: Olseq_form,
    cacheKey: 'olseq_form',
    title: '序列号表单',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/rylb': {
    component: Ry_list,
    cacheKey: 'rylb',
    title: '人员档案',
    inMainLayout: true
  },
  '/shipSRM/baseinfo/ry_form': {
    component: Ry_form,
    cacheKey: 'ry_form',
    title: '人员档案表单',
    inMainLayout: true
  },

  // 供应商中心
  '/shipSRM/gyszx/gyslb': {
    component: Gys_list,
    cacheKey: 'gyslb',
    title: '供应商列表',
    inMainLayout: true
  },
  '/shipSRM/gyszx/gys_form': {
    component: Gys_form,
    cacheKey: 'gys_form',
    title: '供应商表单',
    inMainLayout: true
  },
  '/shipSRM/gyszx/gysbg_list': {
    component: Gysbg_list,
    cacheKey: 'gysbg_list',
    title: '供应商变更',
    inMainLayout: true
  },
  '/shipSRM/gyszx/gysbg_form': {
    component: Gysbg_form,
    cacheKey: 'gysbg_form',
    title: '供应商变更表单',
    inMainLayout: true
  },
  '/shipSRM/gyszx/gyspj_list': {
    component: Gyspj_list,
    cacheKey: 'gyspj_list',
    title: '供应商评价',
    inMainLayout: true
  },
  '/shipSRM/gyszx/gyspj_form': {
    component: Gyspj_form,
    cacheKey: 'gyspj_form',
    title: '供应商评价表单',
    inMainLayout: true
  },

  // 招标中心
  '/shipSRM/zbzx/xmxj_list': {
    component: Xmxj_list,
    cacheKey: 'xmxj_list',
    title: '项目询价',
    inMainLayout: true
  },
  '/shipSRM/zbzx/xmxj_form': {
    component: Xmxj_form,
    cacheKey: 'xmxj_form',
    title: '项目询价表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/xmtb_list': {
    component: Xmtb_list,
    cacheKey: 'xmtb_list',
    title: '项目投标',
    inMainLayout: true
  },
  '/shipSRM/zbzx/xmtb_form': {
    component: Xmtb_form,
    cacheKey: 'xmtb_form',
    title: '项目投标表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/xmjj_list': {
    component: Xmjj_list,
    cacheKey: 'xmjj_list',
    title: '项目竞价',
    inMainLayout: true
  },
  '/shipSRM/zbzx/xmjj_form': {
    component: Xmjj_form,
    cacheKey: 'xmjj_form',
    title: '项目竞价表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/zyjj_list': {
    component: Zyjj_list,
    cacheKey: 'zyjj_list',
    title: '专业竞价',
    inMainLayout: true
  },
  '/shipSRM/zbzx/zyjj_form': {
    component: Zyjj_form,
    cacheKey: 'zyjj_form',
    title: '专业竞价表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/xm_zb_form': {
    component: Xm_zb_form,
    cacheKey: 'xm_zb_form',
    title: '项目招标表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/xm_kb_list': {
    component: Xm_kb_list,
    cacheKey: 'xm_kb_list',
    title: '项目开标',
    inMainLayout: true
  },
  '/shipSRM/zbzx/xm_kb_form': {
    component: Xm_kb_form,
    cacheKey: 'xm_kb_form',
    title: '项目开标表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/xmpb_list': {
    component: Xmpb_list,
    cacheKey: 'xmpb_list',
    title: '项目评标',
    inMainLayout: true
  },
  '/shipSRM/zbzx/xmpb_form': {
    component: Xmpb_form,
    cacheKey: 'xmpb_form',
    title: '项目评标表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/gysyb_list': {
    component: Gysyb_list,
    cacheKey: 'gysyb_list',
    title: '供应商应标',
    inMainLayout: true
  },
  '/shipSRM/zbzx/gysyb_form': {
    component: Gysyb_form,
    cacheKey: 'gysyb_form',
    title: '供应商应标表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/gysjb_list': {
    component: Gysjb_list,
    cacheKey: 'gysjb_list',
    title: '供应商竞标',
    inMainLayout: true
  },
  '/shipSRM/zbzx/gysjb_form': {
    component: Gysjb_form,
    cacheKey: 'gysjb_form',
    title: '供应商竞标表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/gysbqxj_list': {
    component: Gysbqxj_list,
    cacheKey: 'gysbqxj_list',
    title: '供应商报价询价',
    inMainLayout: true
  },
  '/shipSRM/zbzx/gysbqxj_form': {
    component: Gysbqxj_form,
    cacheKey: 'gysbqxj_form',
    title: '供应商报价询价表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/gysxj_list': {
    component: Gysxj_list,
    cacheKey: 'gysxj_list',
    title: '供应商询价',
    inMainLayout: true
  },
  '/shipSRM/zbzx/gysxj_form': {
    component: Gysxj_form,
    cacheKey: 'gysxj_form',
    title: '供应商询价表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/gystb_list': {
    component: Gystb_list,
    cacheKey: 'gystb_list',
    title: '供应商投标',
    inMainLayout: true
  },
  '/shipSRM/zbzx/gystb_form': {
    component: Gystb_form,
    cacheKey: 'gystb_form',
    title: '供应商投标表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/xm_sp_list': {
    component: Xm_sp_list,
    cacheKey: 'xm_sp_list',
    title: '项目审批',
    inMainLayout: true
  },
  '/shipSRM/zbzx/xm_sp_form': {
    component: Xm_sp_form,
    cacheKey: 'xm_sp_form',
    title: '项目审批表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/gyszb_list': {
    component: Gyszb_list,
    cacheKey: 'gyszb_list',
    title: '供应商招标',
    inMainLayout: true
  },
  '/shipSRM/zbzx/gyszb_form': {
    component: Gyszb_form,
    cacheKey: 'gyszb_form',
    title: '供应商招标表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/zbfp_list': {
    component: Zbfp_list,
    cacheKey: 'zbfp_list',
    title: '中标分配',
    inMainLayout: true
  },
  '/shipSRM/zbzx/zbfp_form': {
    component: Zbfp_form,
    cacheKey: 'zbfp_form',
    title: '中标分配表单',
    inMainLayout: true
  },
  '/shipSRM/zbzx/jjzc_list': {
    component: Jjzc_list,
    cacheKey: 'jjzc_list',
    title: '竞价政策',
    inMainLayout: true
  },

  // 库存管理
  '/shipSRM/kcgl/qtck_list': {
    component: Qtck_list,
    cacheKey: 'qtck_list',
    title: '其他出库',
    inMainLayout: true
  },
  '/shipSRM/kcgl/qtck_form': {
    component: Qtck_form,
    cacheKey: 'qtck_form',
    title: '其他出库表单',
    inMainLayout: true
  },
  '/shipSRM/kcgl/qtrk_list': {
    component: Qtrk_list,
    cacheKey: 'qtrk_list',
    title: '其他入库',
    inMainLayout: true
  },
  '/shipSRM/kcgl/qtrk_form': {
    component: Qtrk_form,
    cacheKey: 'qtrk_form',
    title: '其他入库表单',
    inMainLayout: true
  },
  '/shipSRM/kcgl/dbd_list': {
    component: Dbd_list,
    cacheKey: 'dbd_list',
    title: '调拨单',
    inMainLayout: true
  },
  '/shipSRM/kcgl/dbd_form': {
    component: Dbd_form,
    cacheKey: 'dbd_form',
    title: '调拨单表单',
    inMainLayout: true
  },

  // 合同中心
  '/shipSRM/htzx/htmb_list': {
    component: Htmb_list,
    cacheKey: 'htmb_list',
    title: '合同模板',
    inMainLayout: true
  },
  '/shipSRM/htzx/htmb_form': {
    component: Htmb_form,
    cacheKey: 'htmb_form',
    title: '合同模板表单',
    inMainLayout: true
  },
  '/shipSRM/htzx/httz_list': {
    component: Httz_list,
    cacheKey: 'httz_list',
    title: '合同台账',
    inMainLayout: true
  },
  '/shipSRM/htzx/httz_form': {
    component: Httz_form,
    cacheKey: 'httz_form',
    title: '合同台账表单',
    inMainLayout: true
  },
  '/shipSRM/htzx/xymb_list': {
    component: Xymb_list,
    cacheKey: 'xymb_list',
    title: '协议模板',
    inMainLayout: true
  },
  '/shipSRM/htzx/xymb_form': {
    component: Xymb_form,
    cacheKey: 'xymb_form',
    title: '协议模板表单',
    inMainLayout: true
  },
  '/shipSRM/htzx/xygl_list': {
    component: Xygl_list,
    cacheKey: 'xygl_list',
    title: '协议管理',
    inMainLayout: true
  },
  '/shipSRM/htzx/xygl_form': {
    component: Xygl_form,
    cacheKey: 'xygl_form',
    title: '协议管理表单',
    inMainLayout: true
  },

  // 报表
  '/shipSRM/report/crkmx': {
    component: Crkmx,
    cacheKey: 'crkmx',
    title: '出入库明细',
    inMainLayout: true
  },
  '/shipSRM/report/sfc': {
    component: Sfc,
    cacheKey: 'sfc',
    title: '收发存',
    inMainLayout: true
  },
  '/shipSRM/report/jskcmx': {
    component: Jskcmx,
    cacheKey: 'jskcmx',
    title: '即时库存明细',
    inMainLayout: true
  },
  '/shipSRM/report/scllhz': {
    component: Scllhz,
    cacheKey: 'scllhz',
    title: '生产料量汇总',
    inMainLayout: true
  },

  // 财务管理
  '/shipSRM/cwgl/xsfp_list': {
    component: Xsfp_list,
    cacheKey: 'xsfp_list',
    title: '销售发票',
    inMainLayout: true
  },
  '/shipSRM/cwgl/xsfp_form': {
    component: Xsfp_form,
    cacheKey: 'xsfp_form',
    title: '销售发票表单',
    inMainLayout: true
  },
  '/shipSRM/cwgl/gpd_list': {
    component: Gpd_list,
    cacheKey: 'gpd_list',
    title: '供票单',
    inMainLayout: true
  },
  '/shipSRM/cwgl/gpd_form': {
    component: Gpd_form,
    cacheKey: 'gpd_form',
    title: '供票单表单',
    inMainLayout: true
  },

  // 短信中心
  '/shipSRM/dxzx/fsjl_list': {
    component: Fsjl_list,
    cacheKey: 'fsjl_list',
    title: '发送记录',
    inMainLayout: true
  },

  // 移动端路由
  '/shipSRM_mobile/mobile_mainpage': {
    component: Mobile_mainpage,
    cacheKey: 'mobile_mainpage',
    title: '移动端首页',
    inMainLayout: false
  },
  '/shipSRM_mobile/cgrk/mobile_cgrk_llj': {
    component: Mobile_cgrk_llj,
    cacheKey: 'mobile_cgrk_llj',
    title: '移动端采购入库',
    inMainLayout: false
  },
  '/shipSRM_mobile/cgrk/mobile_sltzd_llj': {
    component: Mobile_sltzd_llj,
    cacheKey: 'mobile_sltzd_llj',
    title: '移动端收料通知单',
    inMainLayout: false
  },
  '/shipSRM_mobile/cggl/mobile_qgd_form': {
    component: Mobile_qgd_form,
    cacheKey: 'mobile_qgd_form',
    title: '移动端请购单表单',
    inMainLayout: false
  },
  '/shipSRM_mobile/cggl/mobile_qgd_list': {
    component: Mobile_qgd_list,
    cacheKey: 'mobile_qgd_list',
    title: '移动端请购单列表',
    inMainLayout: false
  },
  '/shipSRM_mobile/cgrk/mobile_bgd_list': {
    component: Mobile_bgd_list,
    cacheKey: 'mobile_bgd_list',
    title: '移动端报工单列表',
    inMainLayout: false
  },
  '/shipSRM_mobile/cgrk/mobile_bgd_form': {
    component: Mobile_bgd_form,
    cacheKey: 'mobile_bgd_form',
    title: '移动端报工单表单',
    inMainLayout: false
  },
  '/shipSRM_mobile/cgrk/mobile_gpd_list': {
    component: Mobile_gpd_list,
    cacheKey: 'mobile_gpd_list',
    title: '移动端供票单列表',
    inMainLayout: false
  },
  '/shipSRM_mobile/cgrk/mobile_gpd_form': {
    component: Mobile_gpd_form,
    cacheKey: 'mobile_gpd_form',
    title: '移动端供票单表单',
    inMainLayout: false
  },
  '/shipSRM_mobile/scgl/mobile_cprk_list': {
    component: Mobile_cprk_list,
    cacheKey: 'mobile_cprk_list',
    title: '移动端成品入库列表',
    inMainLayout: false
  },
  '/shipSRM_mobile/scgl/mobile_cprk_form': {
    component: Mobile_cprk_form,
    cacheKey: 'mobile_cprk_form',
    title: '移动端成品入库表单',
    inMainLayout: false
  },

  // 特殊路由
  '/shipSRM_one/report/scllhz_print': {
    component: Scllhz_print,
    cacheKey: 'scllhz_print',
    title: '生产料量汇总打印',
    inMainLayout: false
  }
};

// 获取路由配置
export const getRouteConfig = (path) => {
  return routeConfig[path] || null;
};

// 获取所有在主布局中的路由
export const getMainLayoutRoutes = () => {
  return Object.entries(routeConfig)
    .filter(([path, config]) => config.inMainLayout)
    .reduce((acc, [path, config]) => {
      acc[path] = config;
      return acc;
    }, {});
};

// 获取所有独立页面路由
export const getIndependentRoutes = () => {
  return Object.entries(routeConfig)
    .filter(([path, config]) => !config.inMainLayout)
    .reduce((acc, [path, config]) => {
      acc[path] = config;
      return acc;
    }, {});
};

export default routeConfig; 